{include file='header.tpl'}
<fieldset id="circleinfo">
    <legend>圈子信息</legend>
    <table>
    <tr><td>圈子id</td><td>{$circle->getId()}</td></tr>
    <tr><td>圈子名称</td><td>{$circle->circlename}</td></tr>
    <tr><td>创建时间</td><td>{$circle->dateline|date_format:'%Y-%m-%d %H:%M'}</td></tr>
    <tr><td>圈主</td><td><a href="{geturl route='space'
        username=$circle->username}">{$circle->username}</a></td></tr>
    <tr><td>圈子描述</td><td>{$circle->description}</td></tr>
    </table>
</fieldset>
<fieldset id="userinfo">
<legend>用户信息</legend>
    <table>
    <tr><td>加入时间</td><td>{$info.dateline|date_format:'%Y-%m-%d %H:%M'}</td></tr>
    <tr><td>圈中级别</td><td>
    {if $info.title == 0}火娃{elseif $info.title == 1}炎娃
    {elseif $info.title == 2}焱娃{else}燚娃{/if}</td></tr>
    <tr><td>管理权限</td><td>
    {if $info.title != 3}
        <a href="{geturl action='abort'}?id={$circle->getId()}">退出此圈</a>
    {else}
        <a href="{geturl action='create'}?id={$circle->getId()}">编辑信息</a>
        <a href="{geturl action='member'}?id={$circle->getId()}">成员管理</a>
        <a href="{geturl action='dismiss'}?id={$circle->getId()}">解散圈子</a>
        <a href="{geturl action='addapp'}">添加应用</a>
    {/if}
</td></tr>
</table>
</fieldset>
{include file='footer.tpl'}